package com.hinnotek.amoeba.ext

import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.OrientationHelper
import androidx.recyclerview.widget.RecyclerView
import com.xuexiang.xui.adapter.recyclerview.DividerItemDecoration
import com.xuexiang.xui.adapter.recyclerview.XLinearLayoutManager


fun RecyclerView.init() {
    layoutManager = XLinearLayoutManager(context);
    addItemDecoration(DividerItemDecoration(context, OrientationHelper.VERTICAL))
    itemAnimator = DefaultItemAnimator()
}